﻿using MediatR;
using System.ComponentModel.DataAnnotations;

namespace Swork03_28.Api.Application.Commands.SlaughterCommand
{
    public class SlaughterCreateCommand:IRequest<int>
    {
        public int UserId {  get; set; }

        public int Id { get; set; }

        [StringLength(50)]
        public string? BatchId { get; set; }

        /// <summary>
        /// 到厂均重
        /// </summary>
        [StringLength(50)]
        public string? Counterpoise { get; set; }

        /// <summary>
        /// 到厂时间
        /// </summary>
        public DateTime BeginData { get; set; }

        /// <summary>
        /// 屠宰时间
        /// </summary>
        public DateTime FinishData { get; set; }

        /// <summary>
        /// 屠宰资质
        /// </summary>
        [StringLength(50)]
        public string? Aptitude { get; set; }

        /// <summary>
        /// 相关资质
        /// </summary>
        public string? Certification { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? UpdateDate { get; set; }
    }
}
